# 求矩形
def rectangle():
    a = int(input('请输入长：'))
    b = int(input('请输入宽:'))
    s = a*b
    c = 2*(a+b)
    print('该矩形面积为：',s)
    print('该矩形周长为',c)

rectangle()

# 数列
def fibonacci():
    fib_list = [0, 1]
    while True:
        new_fib = fib_list[-1] +fib_list[-2]
        if new_fib > 50:
            break
        fib_list.append(new_fib)
    return fib_list

print(fibonacci())
